package com.yt.db.utils;

import com.baomidou.mybatisplus.plugins.Page;

/**
 * @Description ：
 * @Author ： 解风
 * @Date ： 2018/03/02 16:17
 */
public class PageCopyUtils {

    public static void copyProperty(Page source, Page target){
        if(target == null){
            target=new Page();
        }
        if(source != null){
            target.setCondition(source.getCondition());
            target.setCurrent(source.getCurrent());
            target.setTotal(source.getTotal());
            target.setSize(source.getSize());
            target.setOrderByField(source.getOrderByField());
        }
    }

}
